article.help
  .container-fluid
    section.row-fluid.summary
      .summary.col-sm-3
        h3 FOREACH
        p.lead Operate on a collection
      .details.col-sm-9
        p
          | The&nbsp;
          code FOREACH
          |  clause is used to update data within a collection,
          | whether components of a path, or result of aggregation.
        table.table-condensed.table-help
          tr
            th Reference:
            td
              code
                a(href='{{ neo4j.version | neo4jDeveloperDoc }}/#query-foreach') FOREACH
              |  manual page
          tr
            th Related:
            td
              a(help-topic='create') :help CREATE
              | &nbsp;
              a(help-topic='delete') :help DELETE
              | &nbsp;
              a(help-topic='set') :help SET
              | &nbsp;
              a(help-topic='cypher') :help Cypher
    section.row-fluid.example
      .col-sm-9.col-sm-offset-3
        figure
          pre.code.runnable.
            MATCH p = (ups)<-[DEPENDS_ON]-(device) WHERE ups.id='EPS-7001'
            FOREACH (n IN nodes(p) | SET n.available = FALSE )
          figcaption Mark all devices plugged into a failed UPS as unavailable.

